<?php

class Ht_Plugin_Logcheck extends Zend_Controller_Plugin_Abstract
{
	private $_auth = null;
 
	public function __construct() {
		$this->_auth = Zend_Auth::getInstance();
	}
	 
	public function preDispatch(Zend_Controller_Request_Abstract $request) {
		
        if (!$this->_auth->hasIdentity()) {
           $request->setControllerName('auth')
	              	->setActionName('index');
        }
        
	}
};
?>